package edu.zut.hb.software.train.MapSizeManager.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.hb.software.base.service.impl.GenericManagerImpl;
import edu.zut.hb.software.train.MapSize.dao.MapSizeDao;
import edu.zut.hb.software.train.MapSize.domain.MapSize;
import edu.zut.hb.software.train.MapSizeManager.service.MapSizeManager;


@Service("mapsizeManger")
public class MapSizeManagerImpl extends GenericManagerImpl<MapSize, Long> implements MapSizeManager {

	
	MapSizeDao mapSizeDao;
	
	@Autowired
	public void setMapSizeDao(MapSizeDao mapSizeDao) {
		this.mapSizeDao = mapSizeDao;
		this.dao = this.mapSizeDao;
	}

	@Override
	public List<MapSize> getAll() {
		List<MapSize> all = this.mapSizeDao.findAll();
		if (logger.isInfoEnabled()) {
			logger.info("getAll() - List<MapSize> all={}", all); //$NON-NLS-1$
		}
		return all;
	}
 
}